<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 微服务认证中心</title>
    <link rel="stylesheet" th:href="@{/css/login.css}">
</head>
<body>
    <div class="login-container">
        <div class="login-box">
            <h2>用户登录</h2>
            <form th:action="@{/login}" method="post" class="login-form">
                <div th:if="${param.error}" class="alert alert-error">
                    用户名或密码错误
                </div>
                <div th:if="${param.logout}" class="alert alert-success">
                    您已成功退出
                </div>
                <div class="form-group">
                    <input type="text" name="username" placeholder="用户名" required autofocus>
                </div>
                <div class="form-group">
                    <input type="password" name="password" placeholder="密码" required>
                </div>
                <div class="form-group">
                    <label class="remember-me">
                        <input type="checkbox" name="remember-me"> 记住我
                    </label>
                </div>
                <div class="form-group">
                    <button type="submit">登录</button>
                </div>
            </form>
        </div>
    </div>
</body>
</html> 